<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="container">
        <ul>
            <li>xxxxxx</li>
            <li>wwwwww</li>
            <li>ssssss</li>
            <li>aaaaaa</li>
            <li>dddddd</li>
            <li>eeeeee</li>
    
        </ul>
    </div>
    <style>
        ul {
            list-style: none;
            width: 300px;
            padding: 0;
            margin: 0;
        }
        li {
            float: left;
            width: 99px;
            /* 下面两个属性 文字垂直方向和水平方向居中 */
            line-height: 30px;
            text-align: center;
            /* 设置右边框 */
            border-right: 1px solid #999;
            font-size: 18px;
            margin-bottom: 10px;
        }

    ul.container {
        width: 100%;
        height: 100%;
        margin: 50px auto;
            display: flex;
           overflow: hidden;
           justify-content: center;
           background: #e03737;
           div{
            display: block;
           }
           }
    ul>li:nth-child(3n) {
            border-right: none;
        }
    
     </style>
    </body>
</html>